home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2001 February / maximum-cd-2001-02.iso / Team Arena / TeamArenaDemo.exe / Main / pak0.pk3 / ui / createserver.menu < prev    next >
Encoding:
Text File  |  2000-11-22  |  27.1 KB  |  1,298 lines

  1. #include "ui/menudef.h"
  2.  
  3. {
  4. \\ Server Creation \\
  5.  
  6.   menuDef {
  7.         name "createserver"
  8.         visible 0
  9.         fullscreen 1
  10.         rect 0 0 640 480
  11.     //background uibackground4
  12.     background "menuback_a"
  13.     outOfBoundsClick    
  14.     focusColor 1 .75 0 1
  15.         style 1
  16.         border 1
  17.     onEsc { close createserver ; open main }
  18.     onOpen { setitemcolor fadebox backcolor 0 0 0 1 ; 
  19.     playlooped "music/fla_mp03.wav" ;
  20.     fadeout fadebox ; 
  21.     transition mappreview 7 127 190 1 7 57 190 141 20 10 ; 
  22.     uiScript loadArenas }
  23.     
  24.  
  25. itemDef {
  26.     name window
  27.           rect 2 50 200 370    
  28.     style WINDOW_STYLE_FILLED
  29.     border 1
  30.     bordercolor 1 1 1 .25
  31.     forecolor 1 1 1 1
  32.     backcolor 0 0 0 .25
  33.     visible 1
  34.     decoration
  35. }
  36.  
  37. itemDef {
  38.     name window
  39.           rect 204 50 227 98    
  40.     style WINDOW_STYLE_FILLED
  41.     border 1
  42.     bordercolor 1 1 1 .25
  43.     forecolor 1 1 1 1
  44.     backcolor 0 0 0 .25
  45.     visible 1
  46.     decoration
  47. }
  48.  
  49.  
  50. itemDef {
  51.     name window
  52.           rect 204 150 227 270    
  53.     style WINDOW_STYLE_FILLED
  54.     border 1
  55.     bordercolor 1 1 1 .25
  56.     forecolor 1 1 1 1
  57.     backcolor 0 0 0 .25
  58.     visible 1
  59.     decoration
  60. }
  61.  
  62. itemDef {
  63.     name window
  64.           rect 433 50 200 183    
  65.     style WINDOW_STYLE_FILLED
  66.     border 1
  67.     bordercolor 1 1 1 .25
  68.     forecolor 1 1 1 1
  69.     backcolor 0 0 0 .25
  70.     visible 1
  71.      cvarTest "ui_actualNetGameType"
  72.       hideCvar { "0" ; "1" ; "2" }
  73.     decoration
  74. }
  75.  
  76. itemDef {
  77.     name window
  78.           rect 433 235 200 185    
  79.     style WINDOW_STYLE_FILLED
  80.     border 1
  81.     bordercolor 1 1 1 .25
  82.     forecolor 1 1 1 1
  83.     backcolor 0 0 0 .25
  84.     visible 1
  85.      cvarTest "ui_actualNetGameType"
  86.       hideCvar { "0" ; "1" ; "2" }
  87.     decoration
  88. }
  89. itemDef {
  90.     name window
  91.           rect 433 50 200 370    
  92.     style WINDOW_STYLE_FILLED
  93.     border 1
  94.     bordercolor 1 1 1 .25
  95.     forecolor 1 1 1 1
  96.     backcolor 0 0 0 .25
  97.     visible 1
  98.      cvarTest "ui_actualNetGameType"
  99.       showCvar { "0" ; "1" ; "2" }
  100.     decoration
  101. }
  102.  
  103.  
  104.  
  105. //    top bar    //
  106.   itemDef {
  107.           name topbar
  108.           style 2
  109.           rect 0 5 640 40 
  110.           style 2
  111.           border 4
  112.           bordercolor 0.5 0.5 0.5 0.5
  113.           bordersize 2
  114.     backcolor 0 0 .75 .5
  115.           visible 1 
  116.           decoration 
  117.     mouseEnter { setcolor backcolor .75 0 0 .5 }
  118.           mouseExit { setcolor backcolor 0 0 .75 .5 }
  119.     }
  120.  
  121.  
  122. // GLOBAL SETTINGS
  123.  
  124.  
  125.  
  126. itemDef {
  127.           name gametypefield
  128.           style 0    
  129.     ownerdraw UI_NETGAMETYPE
  130.     text "Type:"
  131.     textstyle 6
  132.           rect 0 10 320 31 
  133.           textalign ITEM_ALIGN_LEFT        
  134.           textalignx 20     
  135.           textaligny 26    
  136.     textscale .416     
  137.           forecolor 1 1 1 1
  138.           visible 1
  139.     action { play "sound/misc/kcaction.wav" }
  140.     mouseEnter { fadein message_gametype } 
  141.     mouseExit { fadeout message_gametype } 
  142.     }
  143.  
  144. itemDef {
  145.           name gametypefield
  146.           style 0    
  147.     ownerdraw UI_SKILL
  148.     textstyle 6
  149.     text "Skill:"
  150.           rect 320 10 320 31 
  151.           textalign ITEM_ALIGN_LEFT        
  152.           textalignx 90     
  153.           textaligny 26    
  154.     textscale .416    
  155.           forecolor 1 1 1 1
  156.           visible 1
  157.     action { play "sound/misc/kcaction.wav" }
  158.     mouseEnter { fadein message_skill } 
  159.     mouseExit { fadeout message_skill }  
  160.     }
  161.  
  162.  
  163. // map selection
  164.  
  165. itemDef {
  166.           name mappreview
  167.           style 0    
  168.      ownerdraw UI_STARTMAPCINEMATIC
  169.           rect 7 57 190 141
  170.           border 1
  171.           bordercolor .5 .5 .5 .5
  172.           visible 1 
  173.         }
  174.  
  175. itemDef {
  176.           name mappreview
  177.          style WINDOW_STYLE_FILLED
  178.           rect 6 56 192 143
  179.           border 1
  180.           bordercolor .5 .5 .5 .5
  181.           visible 1
  182.     }
  183.  
  184.  itemDef {
  185.     name maplist
  186.           rect 6 205 192 211
  187.     type ITEM_TYPE_LISTBOX
  188.     style WINDOW_STYLE_FILLED
  189.     elementwidth 120
  190.     elementheight 20
  191.     textscale .25
  192.     elementtype LISTBOX_TEXT
  193.     feeder FEEDER_ALLMAPS
  194.     textstyle 6
  195.     textalign 3
  196.     textaligny 14
  197.     border 1
  198.     bordercolor .5 .5 .5 .5
  199.     forecolor 1 1 1 1
  200.     backcolor 0 0 .5 .25
  201.     outlinecolor .1 .1 .7 .5
  202.     visible 1
  203.     columns 1 2 190 25
  204.     mouseEnter { fadein message_arena ; setitemcolor maplist bordercolor .7 0 0 1 } 
  205.     mouseExit { fadeout message_arena ; setitemcolor maplist bordercolor .5 .5 .5 .5 } 
  206.       }
  207.  
  208. //    SETTINGS    //
  209.  
  210.  
  211.  
  212. //     NORMAL    //    
  213.  
  214.     itemDef {
  215.           name normal
  216.     group grpsettings
  217.         type ITEM_TYPE_NUMERICFIELD
  218.     text "Capture Limit:"
  219.     cvar "capturelimit" 
  220.     ownerdrawflag UI_SHOW_NETANYTEAMGAME  
  221.      rect 260 60 128 12 
  222.     textalign ITEM_ALIGN_RIGHT
  223.     textalignx 65
  224.     textaligny 12
  225.     maxchars 4
  226.     textscale .25        
  227.     forecolor 1 1 1 1
  228.     visible 1 
  229.         }
  230.     itemDef {
  231.           name normal
  232.     group grpsettings
  233.     type ITEM_TYPE_NUMERICFIELD
  234.     text "Frag Limit:"
  235.     cvar "fraglimit"
  236.     ownerdrawflag UI_SHOW_NETANYNONTEAMGAME 
  237.           rect 260 60 128 12 
  238.           textalign ITEM_ALIGN_RIGHT
  239.           textalignx 65
  240.     maxchars 4
  241.           textaligny 12
  242.     textscale .25        
  243.           forecolor 1 1 1 1
  244.           visible 1  
  245.     }
  246.  
  247.     itemDef {
  248.           name normal
  249.     group grpsettings
  250.           type ITEM_TYPE_NUMERICFIELD
  251.     text "Time Limit:"
  252.     cvar "timelimit"
  253.           rect 260 77 128 12 
  254.           textalign ITEM_ALIGN_RIGHT
  255.           textalignx 65
  256.     maxchars 4
  257.           textaligny 12
  258.     textscale .25        
  259.           forecolor 1 1 1 1
  260.           visible 1  
  261.     }
  262.  
  263.  
  264.     itemDef {
  265.           name normal
  266.     group grpsettings
  267.           type ITEM_TYPE_YESNO
  268.     text "Friendly Fire:"
  269.     cvar "g_friendlyfire"
  270.           rect 260 94 128 12 
  271.           textalign ITEM_ALIGN_RIGHT
  272.           textalignx 65
  273.           textaligny 12
  274.     textscale .25        
  275.           forecolor 1 1 1 1
  276.           visible 1  
  277.     }
  278.  
  279.     itemDef {
  280.       name normal
  281.     group grpsettings
  282.           type ITEM_TYPE_YESNO
  283.     text "Pure Server:"
  284.     cvar "sv_pure"
  285.           rect 260 111 128 12 
  286.           textalign ITEM_ALIGN_RIGHT
  287.           textalignx 65
  288.           textaligny 12
  289.     textscale .25        
  290.           forecolor 1 1 1 1
  291.           visible 1  
  292.         }
  293.  
  294.     itemDef {
  295.           name normal
  296.     group grpsettings
  297.           type ITEM_TYPE_MULTI
  298.     text "Dedicated:"
  299.     // syntax for this is cvar name followed by a semicolan separated list of choices first choice equals 0
  300.     // dedicated is a special cvar in that as soon as it is set, the game goes to console only so the ui catches this one specifically
  301.     cvar "ui_dedicated"
  302.     cvarFloatList { "No" 0 "LAN" 1 "Internet" 2 }
  303.     rect 260 128 128 12 
  304.     textalign ITEM_ALIGN_RIGHT
  305.     textalignx 65
  306.     textaligny 12
  307.     textscale .25        
  308.           forecolor 1 1 1 1
  309.          visible 1 
  310.         }
  311.  
  312.  
  313. //     EXPERT    //    
  314.  
  315.     itemDef {
  316.           name expert
  317.     group grpsettings
  318.           type ITEM_TYPE_EDITFIELD
  319.     text "Host Name:"
  320.     cvar "sv_hostname"
  321.     maxChars 32
  322.     maxPaintChars 10
  323.           rect 260 160 128 12 
  324.           textalign ITEM_ALIGN_RIGHT
  325.           textalignx 65
  326.           textaligny 12
  327.     textscale .25        
  328.           forecolor 1 1 1 1
  329.           visible 1  
  330.     }
  331.  
  332.  
  333.  
  334.     itemDef {
  335.           name expert
  336.     group grpsettings
  337.           type ITEM_TYPE_YESNO
  338.     text "Auto Download:"
  339.     cvar "sv_allowdownload"
  340.     rect 260 175 128 12 
  341.     textalign ITEM_ALIGN_RIGHT
  342.     textalignx 65
  343.     textaligny 12
  344.     textscale .25        
  345.     forecolor 1 1 1 1
  346.     visible 1  
  347.     }
  348.  
  349.     itemDef {
  350.           name expert
  351.     group grpsettings
  352.           type ITEM_TYPE_YESNO
  353.     text "Enable Voting:"
  354.     cvar "g_allowvote"
  355.           rect 260 190 128 12 
  356.           textalign ITEM_ALIGN_RIGHT
  357.           textalignx 65
  358.           textaligny 12
  359.     textscale .25        
  360.           forecolor 1 1 1 1
  361.           visible 1  
  362.         }
  363.  
  364.     
  365.  
  366.     itemDef {
  367.           name expert
  368.     group grpsettings
  369.           type ITEM_TYPE_NUMERICFIELD
  370.     text "Maximum Players:"
  371.     cvar "sv_maxclients"
  372.           rect 260 205 128 12 
  373.           textalign ITEM_ALIGN_RIGHT
  374.           textalignx 65
  375.     maxchars 4
  376.           textaligny 12
  377.     textscale .25        
  378.           forecolor 1 1 1 1
  379.           visible 1  
  380.         }
  381.  
  382.  
  383.  
  384.     itemDef {
  385.           name expert
  386.     group grpsettings
  387.           type ITEM_TYPE_NUMERICFIELD
  388.     text "Minimum Ping:"
  389.     cvar "sv_minping"
  390.           rect 260 220 128 12 
  391.           textalign ITEM_ALIGN_RIGHT
  392.           textalignx 65
  393.     maxchars 4
  394.           textaligny 12
  395.     textscale .25        
  396.           forecolor 1 1 1 1
  397.           visible 1  
  398.     }
  399.  
  400.     itemDef {
  401.     name expert
  402.     group grpsettings
  403.           type ITEM_TYPE_NUMERICFIELD
  404.     text "Maximum Ping:"
  405.     cvar "sv_maxping"
  406.           rect 260 235 128 12 
  407.           textalign ITEM_ALIGN_RIGHT
  408.           textalignx 65
  409.           textaligny 12
  410.     maxchars 4
  411.     textscale .25        
  412.           forecolor 1 1 1 1
  413.           visible 1  
  414.     }
  415.  
  416.     itemDef {
  417.     name expert
  418.     group grpsettings
  419.           type ITEM_TYPE_YESNO
  420.     text "Force Join:"
  421.     cvar "g_teamautojoin"
  422.           rect 260 250 128 12 
  423.           textalign ITEM_ALIGN_RIGHT
  424.           textalignx 65
  425.           textaligny 12
  426.     textscale .25        
  427.           forecolor 1 1 1 1
  428.           visible 1  
  429.         }
  430.  
  431.     itemDef {
  432.           name expert
  433.     group grpsettings
  434.           type ITEM_TYPE_YESNO
  435.     text "Even Teams:"
  436.     cvar "g_teamforcebalance"
  437.           rect 260 265 128 12 
  438.           textalign ITEM_ALIGN_RIGHT
  439.           textalignx 65
  440.           textaligny 12
  441.     textscale .25        
  442.           forecolor 1 1 1 1
  443.           visible 1  
  444.         }
  445.  
  446.     itemDef {
  447.           name expert
  448.     group grpsettings
  449.           type ITEM_TYPE_YESNO
  450.     text "Do Warmup:"
  451.     cvar "g_dowarmup"
  452.           rect 260 280 128 12 
  453.           textalign ITEM_ALIGN_RIGHT
  454.           textalignx 65
  455.           textaligny 12
  456.     textscale .25        
  457.           forecolor 1 1 1 1
  458.           visible 1  
  459.         }
  460.  
  461.     itemDef {
  462.     name expert
  463.     group grpsettings
  464.           type ITEM_TYPE_NUMERICFIELD
  465.     text "Warmup time:"
  466.     cvar "g_warmup"
  467.           rect 260 295 128 12 
  468.           textalign ITEM_ALIGN_RIGHT
  469.           textalignx 65
  470.           textaligny 12
  471.     textscale .25  
  472.     maxchars 4
  473.           forecolor 1 1 1 1
  474.           visible 1  
  475.         }
  476.  
  477.     itemDef {
  478.           name expert
  479.     group grpsettings
  480.           type ITEM_TYPE_YESNO
  481.     text "Synchronous Client:"
  482.     cvar "g_synchronousclients"
  483.           rect 260 310 128 12 
  484.           textalign ITEM_ALIGN_RIGHT
  485.           textalignx 65
  486.           textaligny 12
  487.     textscale .25        
  488.           forecolor 1 1 1 1
  489.           visible 1  
  490.         }
  491.  
  492.     itemDef {
  493.           name expert
  494.     group grpsettings
  495.           type ITEM_TYPE_NUMERICFIELD
  496.     text "Max Rate:"
  497.     cvar "sv_maxrate"
  498.           rect 260 325 128 12 
  499.           textalign ITEM_ALIGN_RIGHT
  500.           textalignx 65
  501.     maxchars 4
  502.           textaligny 12
  503.     textscale .25        
  504.           forecolor 1 1 1 1
  505.           visible 1  
  506.         }
  507.  
  508.     itemDef {
  509.           name expert
  510.     group grpsettings
  511.           type ITEM_TYPE_NUMERICFIELD
  512.     text "Zombie Time:"
  513.     cvar "sv_zombietime"
  514.           rect 260 340 128 12 
  515.     maxchars 4
  516.           textalign ITEM_ALIGN_RIGHT
  517.           textalignx 65
  518.           textaligny 12
  519.     textscale .25        
  520.           forecolor 1 1 1 1
  521.           visible 1  
  522.         }
  523.  
  524.     itemDef {
  525.           name expert
  526.     group grpsettings
  527.           type ITEM_TYPE_NUMERICFIELD
  528.     text "Reconnect Limit:"
  529.     cvar "sv_reconnectlimit"
  530.     maxchars 4
  531.           rect 260 355 128 12 
  532.           textalign ITEM_ALIGN_RIGHT
  533.           textalignx 65
  534.           textaligny 12
  535.     textscale .25        
  536.           forecolor 1 1 1 1
  537.           visible 1  
  538.         }
  539.     itemDef {
  540.           name expert
  541.     group grpsettings
  542.      type ITEM_TYPE_YESNO
  543.     text "Require Password:"
  544.     cvar "g_needpassword"
  545.           rect 260 370 128 12 
  546.           textalign ITEM_ALIGN_RIGHT
  547.           textalignx 65
  548.           textaligny 12
  549.     textscale .25        
  550.           forecolor 1 1 1 1
  551.           visible 1  
  552.         }
  553.  
  554.     itemDef {
  555.           name expert
  556.     group grpsettings
  557.           type 4
  558.     text "Password:"
  559.     cvar "g_password"
  560.           rect 260 385 128 12 
  561.     maxchars 10
  562.     maxPaintChars 10
  563.           textalign ITEM_ALIGN_RIGHT
  564.           textalignx 65
  565.           textaligny 12
  566.     textscale .25        
  567.           forecolor 1 1 1 1
  568.           visible 1  
  569.         }
  570.  
  571.  
  572.  
  573. // BOT LIST FOR TEAM GAMES
  574.  
  575. itemDef {
  576.       name gametypefield
  577.       style 0    
  578.        ownerdraw UI_BLUETEAMNAME
  579.       rect 450 70 128 28 
  580.       textalign ITEM_ALIGN_LEFT        
  581.       textalignx 0     
  582.       textaligny 26    
  583.      textscale .333     
  584.       forecolor 0 0 1 1
  585.       border 0
  586.       bordercolor 0 0 0 0
  587.       visible 1  
  588.       cvarTest "ui_actualNetGameType"
  589.       hideCvar { "0" ; "1" ; "2" }
  590.     action { play "sound/misc/nomenu.wav" }
  591.     mouseEnter { fadein message_clan } 
  592.     mouseExit { fadeout message_clan } 
  593.     }
  594.  
  595.  
  596.  
  597. itemDef {
  598.       name gametypefield
  599.       style 0    
  600.        ownerdraw UI_BLUETEAM1
  601.       rect 450 100 128 20 
  602.     text "1."
  603.      textalign ITEM_ALIGN_LEFT    
  604.       textalignx 0     
  605.       textaligny 18    
  606.       textscale .333
  607.       forecolor 1 1 1 1
  608.       border 0
  609.       bordercolor 0 0 0 0
  610.        visible 1 
  611.       cvarTest "ui_actualNetGameType"
  612.       hideCvar { "0" ; "1" ; "2" }
  613.     action { play "sound/misc/nomenu.wav" }
  614.     mouseEnter { fadein message_slot } 
  615.     mouseExit { fadeout message_slot } 
  616.     }
  617.  
  618. itemDef {
  619.       name gametypefield
  620.       style 0    
  621.        ownerdraw UI_BLUETEAM2
  622.       rect 450 122 128 20 
  623.       textalign ITEM_ALIGN_LEFT        
  624.       textalignx 0     
  625.       textaligny 18 
  626.     text "2."   
  627.       textscale .333
  628.       forecolor 1 1 1 1
  629.       border 0
  630.       bordercolor 0 0 0 0
  631.        visible 1 
  632.       cvarTest "ui_actualNetGameType"
  633.       hideCvar { "0" ; "1" ; "2" }
  634.     action { play "sound/misc/nomenu.wav" }
  635.     mouseEnter { fadein message_slot } 
  636.     mouseExit { fadeout message_slot } 
  637.     }
  638.  
  639. itemDef {
  640.       name gametypefield
  641.       style 0    
  642.     text "3."
  643.        ownerdraw UI_BLUETEAM3
  644.       rect 450 144 128 20 
  645.       textalign ITEM_ALIGN_LEFT        
  646.       textalignx 0     
  647.       textaligny 18    
  648.       textscale .333
  649.       forecolor 1 1 1 1
  650.       border 0
  651.       bordercolor 0 0 0 0
  652.        visible 1 
  653.       cvarTest "ui_actualNetGameType"
  654.       hideCvar { "0" ; "1" ; "2" }
  655.     action { play "sound/misc/nomenu.wav" }
  656.     mouseEnter { fadein message_slot } 
  657.     mouseExit { fadeout message_slot } 
  658.     }
  659.  
  660. itemDef {
  661.       name gametypefield
  662.       style 0    
  663.     text "4."
  664.        ownerdraw UI_BLUETEAM4
  665.       rect 450 166 128 20 
  666.       textalign ITEM_ALIGN_LEFT        
  667.       textalignx 0     
  668.       textaligny 18    
  669.       textscale .333
  670.       forecolor 1 1 1 1
  671.       border 0
  672.       bordercolor 0 0 0 0
  673.        visible 1 
  674.       cvarTest "ui_actualNetGameType"
  675.       hideCvar { "0" ; "1" ; "2" }
  676.     action { play "sound/misc/nomenu.wav" }
  677.     mouseEnter { fadein message_slot } 
  678.     mouseExit { fadeout message_slot } 
  679.     }
  680.  
  681. itemDef {
  682.       name gametypefield
  683.       style 0    
  684.     text "5."
  685.        ownerdraw UI_BLUETEAM5
  686.       rect 450 188 128 20 
  687.       textalign ITEM_ALIGN_LEFT        
  688.       textalignx 0     
  689.       textaligny 18    
  690.       textscale .333
  691.       forecolor 1 1 1 1
  692.       border 0
  693.       bordercolor 0 0 0 0
  694.       visible 1 
  695.       cvarTest "ui_actualNetGameType"
  696.       hideCvar { "0" ; "1" ; "2" }
  697.     action { play "sound/misc/nomenu.wav" }
  698.     mouseEnter { fadein message_slot } 
  699.     mouseExit { fadeout message_slot } 
  700.     }
  701.  
  702.  
  703.  
  704.  
  705. itemDef {
  706.       name gametypefield
  707.       style 0    
  708.        ownerdraw UI_REDTEAMNAME
  709.       rect 450 250 128 28 
  710.       textalign ITEM_ALIGN_LEFT        
  711.       textalignx 0     
  712.       textaligny 26    
  713.       textscale .333
  714.       forecolor 1 0 0 1
  715.       border 0
  716.       bordercolor 0 0 0 0
  717.        visible 1 
  718.       cvarTest "ui_actualNetGameType"
  719.       hideCvar { "0" ; "1" ; "2" }
  720.     action { play "sound/misc/nomenu.wav" }
  721.     mouseEnter { fadein message_clan } 
  722.     mouseExit { fadeout message_clan } 
  723.     }
  724.  
  725.  
  726. itemDef {
  727.       name gametypefield
  728.       style 0    
  729.        ownerdraw UI_REDTEAM1
  730.     text "1."
  731.       rect 450 280 128 20 
  732.       textalign ITEM_ALIGN_LEFT        
  733.       textalignx 0     
  734.       textaligny 18    
  735.       textscale .333
  736.       forecolor 1 1 1 1
  737.       border 0
  738.       bordercolor 0 0 0 0
  739.       visible 1 
  740.       cvarTest "ui_actualNetGameType"
  741.       hideCvar { "0" ; "1" ; "2" }
  742.     action { play "sound/misc/nomenu.wav" }
  743.     mouseEnter { fadein message_slot } 
  744.     mouseExit { fadeout message_slot } 
  745.     }
  746.  
  747. itemDef {
  748.       name gametypefield
  749.       style 0    
  750.     text "2."
  751.        ownerdraw UI_REDTEAM2
  752.       rect 450 302 128 20 
  753.       textalign ITEM_ALIGN_LEFT        
  754.       textalignx 0     
  755.       textaligny 18    
  756.       textscale .333
  757.       forecolor 1 1 1 1
  758.       border 0
  759.       bordercolor 0 0 0 0
  760.        visible 1 
  761.       cvarTest "ui_actualNetGameType"
  762.       hideCvar { "0" ; "1" ; "2" }
  763.     action { play "sound/misc/nomenu.wav" }
  764.     mouseEnter { fadein message_slot } 
  765.     mouseExit { fadeout message_slot } 
  766.     }
  767.  
  768. itemDef {
  769.       name gametypefield
  770.       style 0    
  771.     text "3."
  772.        ownerdraw UI_REDTEAM3
  773.       rect 450 324 128 20 
  774.       textalign ITEM_ALIGN_LEFT        
  775.       textalignx 0     
  776.       textaligny 18    
  777.       textscale .333
  778.       forecolor 1 1 1 1
  779.       border 0
  780.       bordercolor 0 0 0 0
  781.        visible 1 
  782.       cvarTest "ui_actualNetGameType"
  783.       hideCvar { "0" ; "1" ; "2" }
  784.     action { play "sound/misc/nomenu.wav" }
  785.     mouseEnter { fadein message_slot } 
  786.     mouseExit { fadeout message_slot } 
  787.     }
  788.  
  789. itemDef {
  790.       name gametypefield
  791.       style 0    
  792.     text "4."
  793.        ownerdraw UI_REDTEAM4
  794.       rect 450 346 128 20 
  795.       textalign ITEM_ALIGN_LEFT        
  796.       textalignx 0     
  797.       textaligny 18    
  798.       textscale .333
  799.       forecolor 1 1 1 1
  800.       border 0
  801.       bordercolor 0 0 0 0
  802.       visible 1 
  803.       cvarTest "ui_actualNetGameType"
  804.       hideCvar { "0" ; "1" ; "2" }
  805.     action { play "sound/misc/nomenu.wav" }
  806.     mouseEnter { fadein message_slot } 
  807.     mouseExit { fadeout message_slot } 
  808.         }
  809.  
  810. itemDef {
  811.           name gametypefield
  812.           style 0    
  813.     text "5."
  814.     ownerdraw UI_REDTEAM5
  815.           rect 450 368 128 20 
  816.          textalign ITEM_ALIGN_LEFT        
  817.           textalignx 0     
  818.           textaligny 18    
  819.     textscale .333
  820.           forecolor 1 1 1 1
  821.           border 0
  822.           bordercolor 0 0 0 0
  823.            visible 1 
  824.       cvarTest "ui_actualNetGameType"
  825.       hideCvar { "0" ; "1" ; "2" }
  826.     action { play "sound/misc/nomenu.wav" } 
  827.     mouseEnter { fadein message_slot } 
  828.     mouseExit { fadeout message_slot } 
  829.         }
  830.  
  831. // BOT LIST FOR NONTEAMGAMES
  832.  
  833.  
  834. itemDef {
  835.       name gametypefield
  836.       style 0    
  837.     text "1."
  838.        ownerdraw UI_BLUETEAM1
  839.       rect 450 100 128 20 
  840.       textalign ITEM_ALIGN_LEFT        
  841.       textalignx 0     
  842.       textaligny 18    
  843.       textscale .333
  844.       forecolor 1 1 1 1
  845.       border 0
  846.       bordercolor 0 0 0 0
  847.         visible 1 
  848.       cvarTest "ui_actualNetGameType"
  849.       showCvar { "0" ; "1" ; "2" }
  850.     action { play "sound/misc/nomenu.wav" }
  851.     mouseEnter { fadein message_slot } 
  852.     mouseExit { fadeout message_slot } 
  853.     }
  854.  
  855. itemDef {
  856.       name gametypefield
  857.       style 0    
  858.     text "2."
  859.        ownerdraw UI_REDTEAM1
  860.       rect 450 125 128 20 
  861.       textalign ITEM_ALIGN_LEFT        
  862.       textalignx 0     
  863.       textaligny 18    
  864.       textscale .333
  865.       forecolor 1 1 1 1
  866.       border 0
  867.       bordercolor 0 0 0 0
  868.         visible 1 
  869.       cvarTest "ui_actualNetGameType"
  870.       showCvar { "0" ; "1" ; "2" }
  871.     action { play "sound/misc/nomenu.wav" }
  872.     mouseEnter { fadein message_slot } 
  873.     mouseExit { fadeout message_slot } 
  874.     }
  875.  
  876. itemDef {
  877.       name gametypefield
  878.       style 0
  879.     text "3."    
  880.        ownerdraw UI_BLUETEAM2
  881.       rect 450 150 128 20 
  882.       textalign ITEM_ALIGN_LEFT        
  883.       textalignx 0     
  884.       textaligny 18    
  885.       textscale .333
  886.       forecolor 1 1 1 1
  887.       border 0
  888.       bordercolor 0 0 0 0
  889.         visible 1 
  890.       cvarTest "ui_actualNetGameType"
  891.       showCvar { "0" ; "1" ; "2" }
  892.     action { play "sound/misc/nomenu.wav" }
  893.     mouseEnter { fadein message_slot } 
  894.     mouseExit { fadeout message_slot } 
  895.     }
  896.  
  897. itemDef {
  898.       name gametypefield
  899.       style 0
  900.     text "4."    
  901.        ownerdraw UI_REDTEAM2
  902.       rect 450 175 128 20 
  903.       textalign ITEM_ALIGN_LEFT        
  904.       textalignx 0     
  905.       textaligny 18    
  906.       textscale .333
  907.       forecolor 1 1 1 1
  908.       border 0
  909.       bordercolor 0 0 0 0
  910.        visible 1 
  911.       cvarTest "ui_actualNetGameType"
  912.       showCvar { "0" ; "1" ; "2" }
  913.     action { play "sound/misc/nomenu.wav" }
  914.     mouseEnter { fadein message_slot } 
  915.     mouseExit { fadeout message_slot } 
  916.     }
  917.  
  918. itemDef {
  919.       name gametypefield
  920.       style 0    
  921.     text "5."
  922.        ownerdraw UI_BLUETEAM3
  923.       rect 450 200 128 20 
  924.       textalign ITEM_ALIGN_LEFT        
  925.       textalignx 0     
  926.       textaligny 18    
  927.       textscale .333
  928.       forecolor 1 1 1 1
  929.       border 0
  930.       bordercolor 0 0 0 0
  931.        visible 1 
  932.       cvarTest "ui_actualNetGameType"
  933.       showCvar { "0" ; "1" ; "2" }
  934.     action { play "sound/misc/nomenu.wav" }
  935.     mouseEnter { fadein message_slot } 
  936.     mouseExit { fadeout message_slot } 
  937.     }
  938.  
  939.  
  940.  
  941.  
  942.  
  943.  
  944.  
  945. itemDef {
  946.           name gametypefield
  947.           style 0    
  948.     text "6."
  949.     ownerdraw UI_REDTEAM3
  950.           rect 450 225 128 20 
  951.           textalign ITEM_ALIGN_LEFT        
  952.           textalignx 0     
  953.           textaligny 18    
  954.     textscale .333
  955.           forecolor 1 1 1 1
  956.           border 0
  957.           bordercolor 0 0 0 0
  958.            visible 1 
  959.       cvarTest "ui_actualNetGameType"
  960.       showCvar { "0" ; "1" ; "2" }
  961.     action { play "sound/misc/nomenu.wav" }
  962.     mouseEnter { fadein message_slot } 
  963.     mouseExit { fadeout message_slot } 
  964.     }
  965.  
  966. itemDef {
  967.           name gametypefield
  968.           style 0    
  969.     text "7."
  970.      ownerdraw UI_BLUETEAM4
  971.           rect 450 250 128 20 
  972.           textalign ITEM_ALIGN_LEFT        
  973.           textalignx 0     
  974.           textaligny 18    
  975.     textscale .333
  976.           forecolor 1 1 1 1
  977.           border 0
  978.           bordercolor 0 0 0 0
  979.             visible 1 
  980.       cvarTest "ui_actualNetGameType"
  981.      showCvar { "0" ; "1" ; "2" }
  982.     action { play "sound/misc/nomenu.wav" }
  983.     mouseEnter { fadein message_slot } 
  984.     mouseExit { fadeout message_slot } 
  985.         }
  986.  
  987. itemDef {
  988.           name gametypefield
  989.           style 0    
  990.     text "8."
  991.      ownerdraw UI_REDTEAM4
  992.           rect 450 275 128 20 
  993.           textalign ITEM_ALIGN_LEFT        
  994.           textalignx 0     
  995.           textaligny 18    
  996.     textscale .333
  997.           forecolor 1 1 1 1
  998.      border 0
  999.           bordercolor 0 0 0 0
  1000.             visible 1 
  1001.       cvarTest "ui_actualNetGameType"
  1002.       showCvar { "0" ; "1" ; "2" }
  1003.     action { play "sound/misc/nomenu.wav" }
  1004.     mouseEnter { fadein message_slot } 
  1005.     mouseExit { fadeout message_slot } 
  1006.     }
  1007.  
  1008. itemDef {
  1009.       name gametypefield
  1010.       style 0
  1011.     text "9."    
  1012.        ownerdraw UI_BLUETEAM5
  1013.       rect 450 300 128 20 
  1014.       textalign ITEM_ALIGN_LEFT        
  1015.       textalignx 0     
  1016.       textaligny 18    
  1017.       textscale .333
  1018.       forecolor 1 1 1 1
  1019.       border 0
  1020.       bordercolor 0 0 0 0
  1021.       visible 1 
  1022.       cvarTest "ui_actualNetGameType"
  1023.     showCvar { "0" ; "1" ; "2" }
  1024.     action { play "sound/misc/nomenu.wav" }
  1025.     mouseEnter { fadein message_slot } 
  1026.     mouseExit { fadeout message_slot } 
  1027.         }
  1028.  
  1029. itemDef {
  1030.           name gametypefield
  1031.           style 0    
  1032.     text "10."
  1033.     ownerdraw UI_REDTEAM5
  1034.           rect 443 325 128 20 
  1035.          textalign ITEM_ALIGN_LEFT        
  1036.           textalignx 0     
  1037.           textaligny 18    
  1038.     textscale .333
  1039.           forecolor 1 1 1 1
  1040.           border 0
  1041.           bordercolor 0 0 0 0
  1042.        visible 1 
  1043.       cvarTest "ui_actualNetGameType"
  1044.       showCvar { "0" ; "1" ; "2" }
  1045.     action { play "sound/misc/nomenu.wav" } 
  1046.     mouseEnter { fadein message_slot } 
  1047.     mouseExit { fadeout message_slot } 
  1048.         }
  1049.  
  1050.  
  1051.  
  1052. // BACK BAR    //
  1053.  
  1054.  
  1055.   itemDef {
  1056.           name gotobar
  1057.           style 2
  1058.           rect 0 430 640 30 
  1059.           textscale 0.4
  1060.           textalign 0                // center
  1061.           textalignx 60        // x alignment point for text
  1062.                             // use it to offset left/right text from the edge 
  1063.                             // or to center the text on a different point
  1064.           textaligny 21        
  1065.           style 2
  1066.           border 4
  1067.           bordercolor 0.5 0.5 0.5 0.75
  1068.           bordersize 2
  1069.           backcolor 0 0 .75 0.5
  1070.           visible 1 
  1071.           mouseEnter { setcolor backcolor .75 0 0 .5 }
  1072.           mouseExit { setcolor backcolor 0 0 .75 .5 }
  1073.           decoration 
  1074.         }
  1075.  
  1076.     itemDef {
  1077.           name back
  1078.     style 3
  1079.           background "ui/assets/backarrow.tga"
  1080.     rect 16 424 50 50 
  1081.           visible 1 
  1082.           action {  close createserver ; open main }
  1083.     mouseEnter { hide back ; show back_alt ; fadein message_back }
  1084.         }
  1085.  
  1086. itemDef {
  1087.           name back_alt
  1088.           style WINDOW_STYLE_SHADER
  1089.     background "ui/assets/backarrow_alt.tga"
  1090.     rect 14 422 54 54 
  1091.           backcolor 0 0 0 0
  1092.           forecolor 1 1 1 1
  1093.           visible 0
  1094.     type ITEM_TYPE_BUTTON
  1095.           mouseExit { hide back_alt ; show back ; fadeout message_back }      
  1096.           action { close createserver ; open main }      
  1097.         }
  1098.  
  1099.  
  1100.  
  1101.     itemDef {
  1102.           name accept
  1103.           style 3    
  1104.          rect 574 424 50 50 
  1105.          background "ui/assets/forwardarrow.tga"
  1106.           backcolor 0 0 0 0
  1107.           forecolor 1 1 1 1
  1108.           visible 1 
  1109.     mouseEnter { playlooped "sound/misc/loop_electricity_05.wav" ; show lightning ; hide accept ; show accept_alt ; fadein message_accept }
  1110.           action { close fight ; uiScript StartServer }
  1111.     //    demo_only
  1112.     cvarTest "ui_actualNetGameType"
  1113.     hideCvar { "0" ; "1" }
  1114.       }
  1115.  
  1116.     itemDef {
  1117.           name accept_alt
  1118.           style 3    
  1119.          rect 572 422 54 54 
  1120.          background "ui/assets/forwardarrow_alt.tga"
  1121.           backcolor 0 0 0 0
  1122.           forecolor 1 1 1 1
  1123.           visible 0   
  1124.         type ITEM_TYPE_BUTTON
  1125.           action { close fight ; uiScript StartServer }
  1126.           mouseExit { hide lightning ; hide accept_alt ; show accept ; fadeout message_accept ; playlooped "music/fla_mp03.wav" }    
  1127.     //    demo_only
  1128.     cvarTest "ui_actualNetGameType"
  1129.     hideCvar { "0" ; "1" }
  1130.       }
  1131. itemDef {
  1132.           name lightning
  1133.           style 3
  1134.     background lightningkc
  1135.           rect 46 385 236 128     
  1136.           visible 0 
  1137.           decoration 
  1138.         }
  1139. itemDef {
  1140.           name lightning
  1141.           style 3
  1142.     background lightningkc
  1143.           rect 355 385 236 128     
  1144.           visible 0 
  1145.           decoration 
  1146.         }
  1147.  
  1148.  
  1149.  
  1150. //    MESSAGES    //
  1151.  
  1152. itemDef {
  1153.     name message_back
  1154.     style 0 
  1155.     rect 320 430 128 30
  1156.     textalign 1
  1157.     textstyle 1
  1158.     textalignx 0
  1159.     textaligny 25
  1160.     textscale .416
  1161.     text "Exit to Main Menu"
  1162.     forecolor 1 1 1 1
  1163.     decoration 
  1164.     visible 0
  1165.     }
  1166.  
  1167. itemDef {
  1168.     name message_accept
  1169.     style 0 
  1170.     rect 320 430 128 30
  1171.     textalign 1
  1172.     textalignx 0
  1173.     textstyle 1
  1174.     textaligny 25
  1175.     textscale .416
  1176.     text "Start Server"
  1177.     forecolor 1 1 1 1
  1178.     decoration 
  1179.     visible 0
  1180.     }
  1181.  
  1182. itemDef {
  1183.     name message_gametype
  1184.     style 0 
  1185.     rect 320 430 128 30
  1186.     textalign 1
  1187.     textstyle 1
  1188.     textalignx 0
  1189.     textaligny 25
  1190.     textscale .416
  1191.     text "Set GameType"
  1192.     forecolor 1 1 1 1
  1193.     decoration 
  1194.     visible 0
  1195.     }
  1196.  
  1197. itemDef {
  1198.     name message_skill
  1199.     style 0 
  1200.     rect 320 430 128 30
  1201.     textalign 1
  1202.     textstyle 1
  1203.     textalignx 0
  1204.     textaligny 25
  1205.     textscale .416
  1206.     text "Set Skill Level"
  1207.     forecolor 1 1 1 1
  1208.     decoration 
  1209.     visible 0
  1210.     }
  1211. itemDef {
  1212.     name message_arena
  1213.     style 0 
  1214.     rect 320 430 128 30
  1215.     textalign 1
  1216.     textstyle 1
  1217.     textalignx 0
  1218.     textaligny 25
  1219.     textscale .416
  1220.     text "Choose Your Arena"
  1221.     forecolor 1 1 1 1
  1222.     decoration 
  1223.     visible 0
  1224.     }
  1225. itemDef {
  1226.     name message_clan
  1227.     style 0 
  1228.     rect 320 430 128 30
  1229.     textalign 1
  1230.     textstyle 1
  1231.     textalignx 0
  1232.     textaligny 25
  1233.     textscale .416
  1234.     text "Click to toggle through clan list"
  1235.     forecolor 1 1 1 1
  1236.     decoration 
  1237.     visible 0
  1238.     }
  1239. itemDef {
  1240.     name message_slot
  1241.     style 0 
  1242.     rect 320 430 128 30
  1243.     textalign 1
  1244.     textstyle 1
  1245.     textalignx 0
  1246.     textaligny 25
  1247.     textscale .416
  1248.     text "Click to toggle botnames, human, or closed slots"
  1249.     forecolor 1 1 1 1
  1250.     decoration 
  1251.     visible 0
  1252.     }
  1253. itemDef {
  1254.     name message_normal
  1255.     style 0 
  1256.     rect 320 430 128 30
  1257.     textalign 1
  1258.     textstyle 1
  1259.     textalignx 0
  1260.     textaligny 25
  1261.     textscale .416
  1262.     text "Select to Modify Normal Server Settings"
  1263.     forecolor 1 1 1 1
  1264.     decoration 
  1265.     visible 0
  1266.     }
  1267. itemDef {
  1268.     name message_expert
  1269.     style 0 
  1270.     rect 320 430 128 30
  1271.     textalign 1
  1272.     textstyle 1
  1273.     textalignx 0
  1274.     textaligny 25
  1275.     textscale .416
  1276.     text "Select to Modify Expert Server Settings"
  1277.     forecolor 1 1 1 1
  1278.     decoration 
  1279.     visible 0
  1280.     }
  1281.  
  1282. itemDef {
  1283.           name fadebox
  1284.           style WINDOW_STYLE_FILLED
  1285.      background "ui/assets/fadebox.tga"
  1286.     forecolor 0 0 0 1
  1287.     backcolor 0 0 0 1
  1288.     rect 0 0 640 480
  1289.           visible 1 
  1290.     decoration
  1291.         }
  1292.  
  1293.  
  1294. }
  1295. }
  1296.  
  1297. }
  1298.